import { mapGetters } from 'vuex'

export const paramsMixins = {
  computed: {
    ...mapGetters(['user', 'userId', 'clientId']),
    status() {
      return this.$route.query.status
    },
    productId() {
      return this.$route.query.id || ''
    },
    baseParams() {
      return {
        'gua_type.neq': '3',
        'channel_type.eq': 0,
        'bank_id.eq': this.clientId,
        'project_type_id.eq': this.productId,
      }
    },
  },
}
